<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
	<div class="modal-dialog modal-lg" role="document" style="margin: 254px auto;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h4 class="modal-title" id="myModalLabel">资源分类管理 — 修改</h4>
			</div>
			<div class="modal-body">
				<form name="editForm">
				
					<div ng-hide="edit_isNext">
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 control-label text-right">上级资源分类：</label>
							<div class="col-xs-12 col-sm-9">
								<input type="text" 
									   class="form-control readonly"
									   readonly 
									   ng-model="resName" 
									   />
							</div>
						</div>

						<div class="form-group">
							<label class="col-xs-12 col-sm-3 control-label text-right">资源分类名称：</label>
							<div class="col-xs-12 col-sm-9">
								<input type="text" 
									   name="resName" 
									   class="form-control" 
									   autocomplete="off" 
									   required 
									   ng-model="edit_resName" 
									   />
								<label class="red required">*</label>
								<div class="error ng-hide"	ng-show="editForm.resName.$dirty&amp;&amp;editForm.resName.$invalid">
									<small class="error" ng-show="editForm.resName.$error.required">请输入资源分类名称</small>
								</div>
							</div>
						</div>		

						<div class="form-group">
							<label class="col-xs-12 col-sm-3 control-label text-right">资源分类排序：</label>
							<div class="col-xs-12 col-sm-9">
								<input type="text" 
									   name="categoryOrder" 
									   class="form-control" 
									   autocomplete="off" 
									   required 
									   ng-model="edit_categoryOrder" 
									   /> 
								<label	class="red required">*</label>
								<div class="error ng-hide"	ng-show="editForm.categoryOrder.$dirty&amp;&amp;editForm.categoryOrder.$invalid">
									<small class="error" ng-show="editForm.categoryOrder.$error.required">请输入资源分类排序</small>
								</div>
							</div>
						</div>	

						<div class="form-group height-auto">
							<label class="col-xs-12 col-sm-3 control-label text-right">描述:</label>
							<div class="col-xs-12 col-sm-9">
								<textarea rows="5" type="text" name="description"
									class="form-control" ng-model="edit_description">                                    
	                                </textarea>
							</div>
						</div>
					</div>

					<div class="overflow-hide form-group height-auto" ng-show="edit_next">
                        <div class="col-xs-12 col-sm-12 text-right">
                        	<button type="button" 
                        		    class="add-column btn btn-normal pull-left btn-default padding-two" 
                        		    data-toggle="modal" 
                        		    data-target="#editList"
                        		    ng-click="addResource()"
                        		    >添加资源
                        	</button>
							<table class="table-column table table-bordered table-header">
                                <thead class="border-table">
                                    <tr>
                                        <td class="w10 text-center">序号</td>
                                        <td class="w10 text-center">资源分类名称</td>
                                        <td class="w20 text-center">资源名称</td>
                                        <td class="w10 text-center">资源类型</td>
                                        <td class="w10 text-center">分享量</td>
                                        <td class="w10 text-center">使用量</td>
                                        <td class="w20 text-center">出版日期</td>
                                        <td class="w10 text-left">操作</td>
                                    </tr>
                                </thead>
                            </table>
                            <div class="table-body">   
                               <table class="table-column table table-bordered table-header talbe-fbfbfb">
                                    <tbody class="">
                                       <tr ng-repeat="val in editResListTabVal" ng-class="{'active':$index%2!=0}" >
                                            <td class="w10 text-center">{{ $index+1 }}</td>
	                                        <td class="w10 text-center">{{ val.categoryName }}</td>
	                                        <td class="w20 text-center">{{ val.resName }}</td>
	                                        <td class="w10 text-center">{{ val.resTypeName }}</td>
	                                        <td class="w10 text-center">{{ val.shareCount }}</td>
	                                        <td class="w10 text-center">{{ val.useCount }}</td>
	                                        <td class="w20 text-center">{{ val.publishDate }}</td>
                                            <td class="w10 text-center icon-td">
		                                        <span class="btn-i" 
		                                        	  title="删除" 
		                                        	  ng-click="deleteRes($index, val)"
		                                        	  >
	                                                <img width="14px" src="../images/right-product/delete.png">
	                                            </span>
                                            </td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
				                        <tr>
				                            <td colspan="12" style="padding-bottom:6px; background:#a2b6bd;">
				                                <nav>
				                                    <tm-pagination style="padding-top:5px;" conf="paginationSelectedResList"></tm-pagination>
				                                </nav>  
				                        	</td>
				                        	<td colspan="12" class="text-center" ng-hide="isNoData">无相关信息</td>
				                        </tr>
				                    </tfoot>
                                </table>
							</div>                                	
						</div>
                    </div>

					<div class="col-sm-12">
						<div class="modal-footer">

							<button type="button" 
									class="btn btn-primary"
									data-dismiss="modal"
									ng-hide="edit_isNext" 
									data-dismiss="modal"
									ng-disabled="editForm.$invalid"
									ng-click="editClose()"
									>取消
							</button>

							<button type="button" 
									class="btn btn-primary" 
									ng-hide="edit_isNext"
									ng-disabled="editForm.$invalid"
									ng-click="editNextStep()"
									>修改并添加资源
							</button>

							<button type="button" 
									class="btn btn-primary" 
									ng-show="edit_back"
									ng-click="editBack()"
									>返回
							</button>

							<button type="button" 
									class="btn btn-primary" 
									data-dismiss="modal"
									ng-show="edit_next"
									>完成
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>